/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.service;

import com.qdu.entity.Dianzan;

/**
 * DianzanService接口 定义 点赞相关的业务逻辑
 * @author Lenovo
 */
public interface DianzanService {
    /**
     * 更新一个日志的点赞情况
     * 若无点赞则插入
     * 若有则提示已点
     */
    public boolean hasZan(String jid, int uid);
    
    /**
     * 为日志添加一个赞
     * 成功则返回赞个数
     * 失败返回0
     */
    public int addZan(String jid);
}
